#!/usr/bin/env python3
# -*- coding: utf-8 -*-
"""
# @Time    : 2021/9/17 9:16 上午
# @Author  : Hubert Shelley
# @Project  : RemotePrintServiceDesktop
# @FileName: test.py
# @Software: PyCharm
"""
import cups

conn = cups.Connection()
printers = conn.getPrinters()
for printer in printers:
    print(printer, printers[printer]["device-uri"])
